


using System;
using SubSonic.Schema;
using System.Collections.Generic;
using SubSonic.DataProviders;
using System.Data;

namespace Vit.Web.Models {
	
        /// <summary>
        /// Table: Portal
        /// Primary Key: PortalID
        /// </summary>

        public class PortalTable: DatabaseTable {
            
            public PortalTable(IDataProvider provider):base("Portal",provider){
                ClassName = "Portal";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("PortalID", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Name", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Description", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 500
                });

                Columns.Add(new DatabaseColumn("Logo", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });

                Columns.Add(new DatabaseColumn("Url", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });

                Columns.Add(new DatabaseColumn("DefaultTheme", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("DefaultLocale", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Status", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("CreatedByUserID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("CreatedOnDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("LastModifiedByUserID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("LastModifiedOnDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn PortalID{
                get{
                    return this.GetColumn("PortalID");
                }
            }
				
   			public static string PortalIDColumn{
			      get{
        			return "PortalID";
      			}
		    }
            
            public IColumn Name{
                get{
                    return this.GetColumn("Name");
                }
            }
				
   			public static string NameColumn{
			      get{
        			return "Name";
      			}
		    }
            
            public IColumn Description{
                get{
                    return this.GetColumn("Description");
                }
            }
				
   			public static string DescriptionColumn{
			      get{
        			return "Description";
      			}
		    }
            
            public IColumn Logo{
                get{
                    return this.GetColumn("Logo");
                }
            }
				
   			public static string LogoColumn{
			      get{
        			return "Logo";
      			}
		    }
            
            public IColumn Url{
                get{
                    return this.GetColumn("Url");
                }
            }
				
   			public static string UrlColumn{
			      get{
        			return "Url";
      			}
		    }
            
            public IColumn DefaultTheme{
                get{
                    return this.GetColumn("DefaultTheme");
                }
            }
				
   			public static string DefaultThemeColumn{
			      get{
        			return "DefaultTheme";
      			}
		    }
            
            public IColumn DefaultLocale{
                get{
                    return this.GetColumn("DefaultLocale");
                }
            }
				
   			public static string DefaultLocaleColumn{
			      get{
        			return "DefaultLocale";
      			}
		    }
            
            public IColumn Status{
                get{
                    return this.GetColumn("Status");
                }
            }
				
   			public static string StatusColumn{
			      get{
        			return "Status";
      			}
		    }
            
            public IColumn CreatedByUserID{
                get{
                    return this.GetColumn("CreatedByUserID");
                }
            }
				
   			public static string CreatedByUserIDColumn{
			      get{
        			return "CreatedByUserID";
      			}
		    }
            
            public IColumn CreatedOnDate{
                get{
                    return this.GetColumn("CreatedOnDate");
                }
            }
				
   			public static string CreatedOnDateColumn{
			      get{
        			return "CreatedOnDate";
      			}
		    }
            
            public IColumn LastModifiedByUserID{
                get{
                    return this.GetColumn("LastModifiedByUserID");
                }
            }
				
   			public static string LastModifiedByUserIDColumn{
			      get{
        			return "LastModifiedByUserID";
      			}
		    }
            
            public IColumn LastModifiedOnDate{
                get{
                    return this.GetColumn("LastModifiedOnDate");
                }
            }
				
   			public static string LastModifiedOnDateColumn{
			      get{
        			return "LastModifiedOnDate";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: Role
        /// Primary Key: RoleID
        /// </summary>

        public class RoleTable: DatabaseTable {
            
            public RoleTable(IDataProvider provider):base("Role",provider){
                ClassName = "Role";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("RoleID", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Name", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Description", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 500
                });

                Columns.Add(new DatabaseColumn("Status", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn RoleID{
                get{
                    return this.GetColumn("RoleID");
                }
            }
				
   			public static string RoleIDColumn{
			      get{
        			return "RoleID";
      			}
		    }
            
            public IColumn Name{
                get{
                    return this.GetColumn("Name");
                }
            }
				
   			public static string NameColumn{
			      get{
        			return "Name";
      			}
		    }
            
            public IColumn Description{
                get{
                    return this.GetColumn("Description");
                }
            }
				
   			public static string DescriptionColumn{
			      get{
        			return "Description";
      			}
		    }
            
            public IColumn Status{
                get{
                    return this.GetColumn("Status");
                }
            }
				
   			public static string StatusColumn{
			      get{
        			return "Status";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: RolePermission
        /// Primary Key: ObjectType
        /// </summary>

        public class RolePermissionTable: DatabaseTable {
            
            public RolePermissionTable(IDataProvider provider):base("RolePermission",provider){
                ClassName = "RolePermission";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("RoleID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("ObjectType", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 20
                });

                Columns.Add(new DatabaseColumn("ObjectUri", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });
                    
                
                
            }

            public IColumn RoleID{
                get{
                    return this.GetColumn("RoleID");
                }
            }
				
   			public static string RoleIDColumn{
			      get{
        			return "RoleID";
      			}
		    }
            
            public IColumn ObjectType{
                get{
                    return this.GetColumn("ObjectType");
                }
            }
				
   			public static string ObjectTypeColumn{
			      get{
        			return "ObjectType";
      			}
		    }
            
            public IColumn ObjectUri{
                get{
                    return this.GetColumn("ObjectUri");
                }
            }
				
   			public static string ObjectUriColumn{
			      get{
        			return "ObjectUri";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: Settings
        /// Primary Key: SettingsID
        /// </summary>

        public class SettingsTable: DatabaseTable {
            
            public SettingsTable(IDataProvider provider):base("Settings",provider){
                ClassName = "Setting";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("SettingsID", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Category", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Name", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Code", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Value", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("ShowOrder", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn SettingsID{
                get{
                    return this.GetColumn("SettingsID");
                }
            }
				
   			public static string SettingsIDColumn{
			      get{
        			return "SettingsID";
      			}
		    }
            
            public IColumn Category{
                get{
                    return this.GetColumn("Category");
                }
            }
				
   			public static string CategoryColumn{
			      get{
        			return "Category";
      			}
		    }
            
            public IColumn Name{
                get{
                    return this.GetColumn("Name");
                }
            }
				
   			public static string NameColumn{
			      get{
        			return "Name";
      			}
		    }
            
            public IColumn Code{
                get{
                    return this.GetColumn("Code");
                }
            }
				
   			public static string CodeColumn{
			      get{
        			return "Code";
      			}
		    }
            
            public IColumn Value{
                get{
                    return this.GetColumn("Value");
                }
            }
				
   			public static string ValueColumn{
			      get{
        			return "Value";
      			}
		    }
            
            public IColumn ShowOrder{
                get{
                    return this.GetColumn("ShowOrder");
                }
            }
				
   			public static string ShowOrderColumn{
			      get{
        			return "ShowOrder";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: SiteModule
        /// Primary Key: ModuleID
        /// </summary>

        public class SiteModuleTable: DatabaseTable {
            
            public SiteModuleTable(IDataProvider provider):base("SiteModule",provider){
                ClassName = "SiteModule";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("SiteID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("ModuleID", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("InstalledOnDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("ExpiredOnDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn SiteID{
                get{
                    return this.GetColumn("SiteID");
                }
            }
				
   			public static string SiteIDColumn{
			      get{
        			return "SiteID";
      			}
		    }
            
            public IColumn ModuleID{
                get{
                    return this.GetColumn("ModuleID");
                }
            }
				
   			public static string ModuleIDColumn{
			      get{
        			return "ModuleID";
      			}
		    }
            
            public IColumn InstalledOnDate{
                get{
                    return this.GetColumn("InstalledOnDate");
                }
            }
				
   			public static string InstalledOnDateColumn{
			      get{
        			return "InstalledOnDate";
      			}
		    }
            
            public IColumn ExpiredOnDate{
                get{
                    return this.GetColumn("ExpiredOnDate");
                }
            }
				
   			public static string ExpiredOnDateColumn{
			      get{
        			return "ExpiredOnDate";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: Skin
        /// Primary Key: SkinID
        /// </summary>

        public class SkinTable: DatabaseTable {
            
            public SkinTable(IDataProvider provider):base("Skin",provider){
                ClassName = "Skin";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("SkinID", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("ThemeID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Name", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Description", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 500
                });

                Columns.Add(new DatabaseColumn("Url", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });

                Columns.Add(new DatabaseColumn("Demo", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });

                Columns.Add(new DatabaseColumn("Status", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("CreatedByUserID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("CreatedOnDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("LastModifiedByUserID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("LastModifiedOnDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn SkinID{
                get{
                    return this.GetColumn("SkinID");
                }
            }
				
   			public static string SkinIDColumn{
			      get{
        			return "SkinID";
      			}
		    }
            
            public IColumn ThemeID{
                get{
                    return this.GetColumn("ThemeID");
                }
            }
				
   			public static string ThemeIDColumn{
			      get{
        			return "ThemeID";
      			}
		    }
            
            public IColumn Name{
                get{
                    return this.GetColumn("Name");
                }
            }
				
   			public static string NameColumn{
			      get{
        			return "Name";
      			}
		    }
            
            public IColumn Description{
                get{
                    return this.GetColumn("Description");
                }
            }
				
   			public static string DescriptionColumn{
			      get{
        			return "Description";
      			}
		    }
            
            public IColumn Url{
                get{
                    return this.GetColumn("Url");
                }
            }
				
   			public static string UrlColumn{
			      get{
        			return "Url";
      			}
		    }
            
            public IColumn Demo{
                get{
                    return this.GetColumn("Demo");
                }
            }
				
   			public static string DemoColumn{
			      get{
        			return "Demo";
      			}
		    }
            
            public IColumn Status{
                get{
                    return this.GetColumn("Status");
                }
            }
				
   			public static string StatusColumn{
			      get{
        			return "Status";
      			}
		    }
            
            public IColumn CreatedByUserID{
                get{
                    return this.GetColumn("CreatedByUserID");
                }
            }
				
   			public static string CreatedByUserIDColumn{
			      get{
        			return "CreatedByUserID";
      			}
		    }
            
            public IColumn CreatedOnDate{
                get{
                    return this.GetColumn("CreatedOnDate");
                }
            }
				
   			public static string CreatedOnDateColumn{
			      get{
        			return "CreatedOnDate";
      			}
		    }
            
            public IColumn LastModifiedByUserID{
                get{
                    return this.GetColumn("LastModifiedByUserID");
                }
            }
				
   			public static string LastModifiedByUserIDColumn{
			      get{
        			return "LastModifiedByUserID";
      			}
		    }
            
            public IColumn LastModifiedOnDate{
                get{
                    return this.GetColumn("LastModifiedOnDate");
                }
            }
				
   			public static string LastModifiedOnDateColumn{
			      get{
        			return "LastModifiedOnDate";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: Theme
        /// Primary Key: ThemeID
        /// </summary>

        public class ThemeTable: DatabaseTable {
            
            public ThemeTable(IDataProvider provider):base("Theme",provider){
                ClassName = "Theme";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("ThemeID", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Name", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Description", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 500
                });

                Columns.Add(new DatabaseColumn("Url", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });

                Columns.Add(new DatabaseColumn("Demo", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });

                Columns.Add(new DatabaseColumn("Layout", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });

                Columns.Add(new DatabaseColumn("DefaultSkin", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Status", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("CreatedByUserID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("CreatedOnDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("LastModifiedByUserID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("LastModifiedOnDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn ThemeID{
                get{
                    return this.GetColumn("ThemeID");
                }
            }
				
   			public static string ThemeIDColumn{
			      get{
        			return "ThemeID";
      			}
		    }
            
            public IColumn Name{
                get{
                    return this.GetColumn("Name");
                }
            }
				
   			public static string NameColumn{
			      get{
        			return "Name";
      			}
		    }
            
            public IColumn Description{
                get{
                    return this.GetColumn("Description");
                }
            }
				
   			public static string DescriptionColumn{
			      get{
        			return "Description";
      			}
		    }
            
            public IColumn Url{
                get{
                    return this.GetColumn("Url");
                }
            }
				
   			public static string UrlColumn{
			      get{
        			return "Url";
      			}
		    }
            
            public IColumn Demo{
                get{
                    return this.GetColumn("Demo");
                }
            }
				
   			public static string DemoColumn{
			      get{
        			return "Demo";
      			}
		    }
            
            public IColumn Layout{
                get{
                    return this.GetColumn("Layout");
                }
            }
				
   			public static string LayoutColumn{
			      get{
        			return "Layout";
      			}
		    }
            
            public IColumn DefaultSkin{
                get{
                    return this.GetColumn("DefaultSkin");
                }
            }
				
   			public static string DefaultSkinColumn{
			      get{
        			return "DefaultSkin";
      			}
		    }
            
            public IColumn Status{
                get{
                    return this.GetColumn("Status");
                }
            }
				
   			public static string StatusColumn{
			      get{
        			return "Status";
      			}
		    }
            
            public IColumn CreatedByUserID{
                get{
                    return this.GetColumn("CreatedByUserID");
                }
            }
				
   			public static string CreatedByUserIDColumn{
			      get{
        			return "CreatedByUserID";
      			}
		    }
            
            public IColumn CreatedOnDate{
                get{
                    return this.GetColumn("CreatedOnDate");
                }
            }
				
   			public static string CreatedOnDateColumn{
			      get{
        			return "CreatedOnDate";
      			}
		    }
            
            public IColumn LastModifiedByUserID{
                get{
                    return this.GetColumn("LastModifiedByUserID");
                }
            }
				
   			public static string LastModifiedByUserIDColumn{
			      get{
        			return "LastModifiedByUserID";
      			}
		    }
            
            public IColumn LastModifiedOnDate{
                get{
                    return this.GetColumn("LastModifiedOnDate");
                }
            }
				
   			public static string LastModifiedOnDateColumn{
			      get{
        			return "LastModifiedOnDate";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: User
        /// Primary Key: UserID
        /// </summary>

        public class UserTable: DatabaseTable {
            
            public UserTable(IDataProvider provider):base("User",provider){
                ClassName = "User";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("UserID", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("FirstName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 20
                });

                Columns.Add(new DatabaseColumn("LastName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 20
                });

                Columns.Add(new DatabaseColumn("Sex", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Email", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });

                Columns.Add(new DatabaseColumn("Account", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 20
                });

                Columns.Add(new DatabaseColumn("Password", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 128
                });

                Columns.Add(new DatabaseColumn("PasswordFormat", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 128
                });

                Columns.Add(new DatabaseColumn("PasswordSalt", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 128
                });

                Columns.Add(new DatabaseColumn("PasswordQuestion", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 256
                });

                Columns.Add(new DatabaseColumn("PasswordAnswer", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 128
                });

                Columns.Add(new DatabaseColumn("LoggedUrl", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });

                Columns.Add(new DatabaseColumn("Gravatar", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });

                Columns.Add(new DatabaseColumn("Description", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 2000
                });

                Columns.Add(new DatabaseColumn("MSN", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("QQ", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Feixin", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Skype", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Twitter", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("FriendFeed", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Blog", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });

                Columns.Add(new DatabaseColumn("OtherEmail", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });

                Columns.Add(new DatabaseColumn("OtherContacts", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });

                Columns.Add(new DatabaseColumn("Extension", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Xml,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = -1
                });

                Columns.Add(new DatabaseColumn("LastLoggedDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("LastVisitedDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("LastVisitedUrl", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });

                Columns.Add(new DatabaseColumn("Status", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("LastStatusDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("LocaleID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("ThemeID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("SkinID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn UserID{
                get{
                    return this.GetColumn("UserID");
                }
            }
				
   			public static string UserIDColumn{
			      get{
        			return "UserID";
      			}
		    }
            
            public IColumn FirstName{
                get{
                    return this.GetColumn("FirstName");
                }
            }
				
   			public static string FirstNameColumn{
			      get{
        			return "FirstName";
      			}
		    }
            
            public IColumn LastName{
                get{
                    return this.GetColumn("LastName");
                }
            }
				
   			public static string LastNameColumn{
			      get{
        			return "LastName";
      			}
		    }
            
            public IColumn Sex{
                get{
                    return this.GetColumn("Sex");
                }
            }
				
   			public static string SexColumn{
			      get{
        			return "Sex";
      			}
		    }
            
            public IColumn Email{
                get{
                    return this.GetColumn("Email");
                }
            }
				
   			public static string EmailColumn{
			      get{
        			return "Email";
      			}
		    }
            
            public IColumn Account{
                get{
                    return this.GetColumn("Account");
                }
            }
				
   			public static string AccountColumn{
			      get{
        			return "Account";
      			}
		    }
            
            public IColumn Password{
                get{
                    return this.GetColumn("Password");
                }
            }
				
   			public static string PasswordColumn{
			      get{
        			return "Password";
      			}
		    }
            
            public IColumn PasswordFormat{
                get{
                    return this.GetColumn("PasswordFormat");
                }
            }
				
   			public static string PasswordFormatColumn{
			      get{
        			return "PasswordFormat";
      			}
		    }
            
            public IColumn PasswordSalt{
                get{
                    return this.GetColumn("PasswordSalt");
                }
            }
				
   			public static string PasswordSaltColumn{
			      get{
        			return "PasswordSalt";
      			}
		    }
            
            public IColumn PasswordQuestion{
                get{
                    return this.GetColumn("PasswordQuestion");
                }
            }
				
   			public static string PasswordQuestionColumn{
			      get{
        			return "PasswordQuestion";
      			}
		    }
            
            public IColumn PasswordAnswer{
                get{
                    return this.GetColumn("PasswordAnswer");
                }
            }
				
   			public static string PasswordAnswerColumn{
			      get{
        			return "PasswordAnswer";
      			}
		    }
            
            public IColumn LoggedUrl{
                get{
                    return this.GetColumn("LoggedUrl");
                }
            }
				
   			public static string LoggedUrlColumn{
			      get{
        			return "LoggedUrl";
      			}
		    }
            
            public IColumn Gravatar{
                get{
                    return this.GetColumn("Gravatar");
                }
            }
				
   			public static string GravatarColumn{
			      get{
        			return "Gravatar";
      			}
		    }
            
            public IColumn Description{
                get{
                    return this.GetColumn("Description");
                }
            }
				
   			public static string DescriptionColumn{
			      get{
        			return "Description";
      			}
		    }
            
            public IColumn MSN{
                get{
                    return this.GetColumn("MSN");
                }
            }
				
   			public static string MSNColumn{
			      get{
        			return "MSN";
      			}
		    }
            
            public IColumn QQ{
                get{
                    return this.GetColumn("QQ");
                }
            }
				
   			public static string QQColumn{
			      get{
        			return "QQ";
      			}
		    }
            
            public IColumn Feixin{
                get{
                    return this.GetColumn("Feixin");
                }
            }
				
   			public static string FeixinColumn{
			      get{
        			return "Feixin";
      			}
		    }
            
            public IColumn Skype{
                get{
                    return this.GetColumn("Skype");
                }
            }
				
   			public static string SkypeColumn{
			      get{
        			return "Skype";
      			}
		    }
            
            public IColumn Twitter{
                get{
                    return this.GetColumn("Twitter");
                }
            }
				
   			public static string TwitterColumn{
			      get{
        			return "Twitter";
      			}
		    }
            
            public IColumn FriendFeed{
                get{
                    return this.GetColumn("FriendFeed");
                }
            }
				
   			public static string FriendFeedColumn{
			      get{
        			return "FriendFeed";
      			}
		    }
            
            public IColumn Blog{
                get{
                    return this.GetColumn("Blog");
                }
            }
				
   			public static string BlogColumn{
			      get{
        			return "Blog";
      			}
		    }
            
            public IColumn OtherEmail{
                get{
                    return this.GetColumn("OtherEmail");
                }
            }
				
   			public static string OtherEmailColumn{
			      get{
        			return "OtherEmail";
      			}
		    }
            
            public IColumn OtherContacts{
                get{
                    return this.GetColumn("OtherContacts");
                }
            }
				
   			public static string OtherContactsColumn{
			      get{
        			return "OtherContacts";
      			}
		    }
            
            public IColumn Extension{
                get{
                    return this.GetColumn("Extension");
                }
            }
				
   			public static string ExtensionColumn{
			      get{
        			return "Extension";
      			}
		    }
            
            public IColumn LastLoggedDate{
                get{
                    return this.GetColumn("LastLoggedDate");
                }
            }
				
   			public static string LastLoggedDateColumn{
			      get{
        			return "LastLoggedDate";
      			}
		    }
            
            public IColumn LastVisitedDate{
                get{
                    return this.GetColumn("LastVisitedDate");
                }
            }
				
   			public static string LastVisitedDateColumn{
			      get{
        			return "LastVisitedDate";
      			}
		    }
            
            public IColumn LastVisitedUrl{
                get{
                    return this.GetColumn("LastVisitedUrl");
                }
            }
				
   			public static string LastVisitedUrlColumn{
			      get{
        			return "LastVisitedUrl";
      			}
		    }
            
            public IColumn Status{
                get{
                    return this.GetColumn("Status");
                }
            }
				
   			public static string StatusColumn{
			      get{
        			return "Status";
      			}
		    }
            
            public IColumn LastStatusDate{
                get{
                    return this.GetColumn("LastStatusDate");
                }
            }
				
   			public static string LastStatusDateColumn{
			      get{
        			return "LastStatusDate";
      			}
		    }
            
            public IColumn LocaleID{
                get{
                    return this.GetColumn("LocaleID");
                }
            }
				
   			public static string LocaleIDColumn{
			      get{
        			return "LocaleID";
      			}
		    }
            
            public IColumn ThemeID{
                get{
                    return this.GetColumn("ThemeID");
                }
            }
				
   			public static string ThemeIDColumn{
			      get{
        			return "ThemeID";
      			}
		    }
            
            public IColumn SkinID{
                get{
                    return this.GetColumn("SkinID");
                }
            }
				
   			public static string SkinIDColumn{
			      get{
        			return "SkinID";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: UserRole
        /// Primary Key: RoleID
        /// </summary>

        public class UserRoleTable: DatabaseTable {
            
            public UserRoleTable(IDataProvider provider):base("UserRole",provider){
                ClassName = "UserRole";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("UserID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("RoleID", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Status", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("ValidOnDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("ExpiredOnDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn UserID{
                get{
                    return this.GetColumn("UserID");
                }
            }
				
   			public static string UserIDColumn{
			      get{
        			return "UserID";
      			}
		    }
            
            public IColumn RoleID{
                get{
                    return this.GetColumn("RoleID");
                }
            }
				
   			public static string RoleIDColumn{
			      get{
        			return "RoleID";
      			}
		    }
            
            public IColumn Status{
                get{
                    return this.GetColumn("Status");
                }
            }
				
   			public static string StatusColumn{
			      get{
        			return "Status";
      			}
		    }
            
            public IColumn ValidOnDate{
                get{
                    return this.GetColumn("ValidOnDate");
                }
            }
				
   			public static string ValidOnDateColumn{
			      get{
        			return "ValidOnDate";
      			}
		    }
            
            public IColumn ExpiredOnDate{
                get{
                    return this.GetColumn("ExpiredOnDate");
                }
            }
				
   			public static string ExpiredOnDateColumn{
			      get{
        			return "ExpiredOnDate";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: WebSite
        /// Primary Key: SiteID
        /// </summary>

        public class WebSiteTable: DatabaseTable {
            
            public WebSiteTable(IDataProvider provider):base("WebSite",provider){
                ClassName = "WebSite";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("SiteID", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("PortalID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Name", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Description", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 500
                });

                Columns.Add(new DatabaseColumn("Logo", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });

                Columns.Add(new DatabaseColumn("FavIcon", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });

                Columns.Add(new DatabaseColumn("Url", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });

                Columns.Add(new DatabaseColumn("DefaultTheme", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("DefaultLocale", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Status", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("CreatedByUserID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("CreatedOnDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("LastModifiedByUserID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("LastModifiedOnDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn SiteID{
                get{
                    return this.GetColumn("SiteID");
                }
            }
				
   			public static string SiteIDColumn{
			      get{
        			return "SiteID";
      			}
		    }
            
            public IColumn PortalID{
                get{
                    return this.GetColumn("PortalID");
                }
            }
				
   			public static string PortalIDColumn{
			      get{
        			return "PortalID";
      			}
		    }
            
            public IColumn Name{
                get{
                    return this.GetColumn("Name");
                }
            }
				
   			public static string NameColumn{
			      get{
        			return "Name";
      			}
		    }
            
            public IColumn Description{
                get{
                    return this.GetColumn("Description");
                }
            }
				
   			public static string DescriptionColumn{
			      get{
        			return "Description";
      			}
		    }
            
            public IColumn Logo{
                get{
                    return this.GetColumn("Logo");
                }
            }
				
   			public static string LogoColumn{
			      get{
        			return "Logo";
      			}
		    }
            
            public IColumn FavIcon{
                get{
                    return this.GetColumn("FavIcon");
                }
            }
				
   			public static string FavIconColumn{
			      get{
        			return "FavIcon";
      			}
		    }
            
            public IColumn Url{
                get{
                    return this.GetColumn("Url");
                }
            }
				
   			public static string UrlColumn{
			      get{
        			return "Url";
      			}
		    }
            
            public IColumn DefaultTheme{
                get{
                    return this.GetColumn("DefaultTheme");
                }
            }
				
   			public static string DefaultThemeColumn{
			      get{
        			return "DefaultTheme";
      			}
		    }
            
            public IColumn DefaultLocale{
                get{
                    return this.GetColumn("DefaultLocale");
                }
            }
				
   			public static string DefaultLocaleColumn{
			      get{
        			return "DefaultLocale";
      			}
		    }
            
            public IColumn Status{
                get{
                    return this.GetColumn("Status");
                }
            }
				
   			public static string StatusColumn{
			      get{
        			return "Status";
      			}
		    }
            
            public IColumn CreatedByUserID{
                get{
                    return this.GetColumn("CreatedByUserID");
                }
            }
				
   			public static string CreatedByUserIDColumn{
			      get{
        			return "CreatedByUserID";
      			}
		    }
            
            public IColumn CreatedOnDate{
                get{
                    return this.GetColumn("CreatedOnDate");
                }
            }
				
   			public static string CreatedOnDateColumn{
			      get{
        			return "CreatedOnDate";
      			}
		    }
            
            public IColumn LastModifiedByUserID{
                get{
                    return this.GetColumn("LastModifiedByUserID");
                }
            }
				
   			public static string LastModifiedByUserIDColumn{
			      get{
        			return "LastModifiedByUserID";
      			}
		    }
            
            public IColumn LastModifiedOnDate{
                get{
                    return this.GetColumn("LastModifiedOnDate");
                }
            }
				
   			public static string LastModifiedOnDateColumn{
			      get{
        			return "LastModifiedOnDate";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: WebSiteRole
        /// Primary Key: RoleID
        /// </summary>

        public class WebSiteRoleTable: DatabaseTable {
            
            public WebSiteRoleTable(IDataProvider provider):base("WebSiteRole",provider){
                ClassName = "WebSiteRole";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("SiteID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("RoleID", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Status", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("ValidOnDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("ExpiredOnDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn SiteID{
                get{
                    return this.GetColumn("SiteID");
                }
            }
				
   			public static string SiteIDColumn{
			      get{
        			return "SiteID";
      			}
		    }
            
            public IColumn RoleID{
                get{
                    return this.GetColumn("RoleID");
                }
            }
				
   			public static string RoleIDColumn{
			      get{
        			return "RoleID";
      			}
		    }
            
            public IColumn Status{
                get{
                    return this.GetColumn("Status");
                }
            }
				
   			public static string StatusColumn{
			      get{
        			return "Status";
      			}
		    }
            
            public IColumn ValidOnDate{
                get{
                    return this.GetColumn("ValidOnDate");
                }
            }
				
   			public static string ValidOnDateColumn{
			      get{
        			return "ValidOnDate";
      			}
		    }
            
            public IColumn ExpiredOnDate{
                get{
                    return this.GetColumn("ExpiredOnDate");
                }
            }
				
   			public static string ExpiredOnDateColumn{
			      get{
        			return "ExpiredOnDate";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: WebSiteTheme
        /// Primary Key: SiteID
        /// </summary>

        public class WebSiteThemeTable: DatabaseTable {
            
            public WebSiteThemeTable(IDataProvider provider):base("WebSiteTheme",provider){
                ClassName = "WebSiteTheme";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("SiteID", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("ThemeID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Status", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn SiteID{
                get{
                    return this.GetColumn("SiteID");
                }
            }
				
   			public static string SiteIDColumn{
			      get{
        			return "SiteID";
      			}
		    }
            
            public IColumn ThemeID{
                get{
                    return this.GetColumn("ThemeID");
                }
            }
				
   			public static string ThemeIDColumn{
			      get{
        			return "ThemeID";
      			}
		    }
            
            public IColumn Status{
                get{
                    return this.GetColumn("Status");
                }
            }
				
   			public static string StatusColumn{
			      get{
        			return "Status";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: WebSiteUser
        /// Primary Key: SiteID
        /// </summary>

        public class WebSiteUserTable: DatabaseTable {
            
            public WebSiteUserTable(IDataProvider provider):base("WebSiteUser",provider){
                ClassName = "WebSiteUser";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("SiteID", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("UserID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Status", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("ValidOnDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("ExpiredOnDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn SiteID{
                get{
                    return this.GetColumn("SiteID");
                }
            }
				
   			public static string SiteIDColumn{
			      get{
        			return "SiteID";
      			}
		    }
            
            public IColumn UserID{
                get{
                    return this.GetColumn("UserID");
                }
            }
				
   			public static string UserIDColumn{
			      get{
        			return "UserID";
      			}
		    }
            
            public IColumn Status{
                get{
                    return this.GetColumn("Status");
                }
            }
				
   			public static string StatusColumn{
			      get{
        			return "Status";
      			}
		    }
            
            public IColumn ValidOnDate{
                get{
                    return this.GetColumn("ValidOnDate");
                }
            }
				
   			public static string ValidOnDateColumn{
			      get{
        			return "ValidOnDate";
      			}
		    }
            
            public IColumn ExpiredOnDate{
                get{
                    return this.GetColumn("ExpiredOnDate");
                }
            }
				
   			public static string ExpiredOnDateColumn{
			      get{
        			return "ExpiredOnDate";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: WebPage
        /// Primary Key: PageID
        /// </summary>

        public class WebPageTable: DatabaseTable {
            
            public WebPageTable(IDataProvider provider):base("WebPage",provider){
                ClassName = "WebPage";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("PageID", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("SiteID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Title", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 100
                });

                Columns.Add(new DatabaseColumn("UrlPattern", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });

                Columns.Add(new DatabaseColumn("MetaKeywords", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });

                Columns.Add(new DatabaseColumn("MetaDescription", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });

                Columns.Add(new DatabaseColumn("MetaCharset", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 100
                });

                Columns.Add(new DatabaseColumn("MetaCopyRight", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });

                Columns.Add(new DatabaseColumn("MetaRobots", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });

                Columns.Add(new DatabaseColumn("Priority", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Area", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("MasterName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("ViewName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });
                    
                
                
            }

            public IColumn PageID{
                get{
                    return this.GetColumn("PageID");
                }
            }
				
   			public static string PageIDColumn{
			      get{
        			return "PageID";
      			}
		    }
            
            public IColumn SiteID{
                get{
                    return this.GetColumn("SiteID");
                }
            }
				
   			public static string SiteIDColumn{
			      get{
        			return "SiteID";
      			}
		    }
            
            public IColumn Title{
                get{
                    return this.GetColumn("Title");
                }
            }
				
   			public static string TitleColumn{
			      get{
        			return "Title";
      			}
		    }
            
            public IColumn UrlPattern{
                get{
                    return this.GetColumn("UrlPattern");
                }
            }
				
   			public static string UrlPatternColumn{
			      get{
        			return "UrlPattern";
      			}
		    }
            
            public IColumn MetaKeywords{
                get{
                    return this.GetColumn("MetaKeywords");
                }
            }
				
   			public static string MetaKeywordsColumn{
			      get{
        			return "MetaKeywords";
      			}
		    }
            
            public IColumn MetaDescription{
                get{
                    return this.GetColumn("MetaDescription");
                }
            }
				
   			public static string MetaDescriptionColumn{
			      get{
        			return "MetaDescription";
      			}
		    }
            
            public IColumn MetaCharset{
                get{
                    return this.GetColumn("MetaCharset");
                }
            }
				
   			public static string MetaCharsetColumn{
			      get{
        			return "MetaCharset";
      			}
		    }
            
            public IColumn MetaCopyRight{
                get{
                    return this.GetColumn("MetaCopyRight");
                }
            }
				
   			public static string MetaCopyRightColumn{
			      get{
        			return "MetaCopyRight";
      			}
		    }
            
            public IColumn MetaRobots{
                get{
                    return this.GetColumn("MetaRobots");
                }
            }
				
   			public static string MetaRobotsColumn{
			      get{
        			return "MetaRobots";
      			}
		    }
            
            public IColumn Priority{
                get{
                    return this.GetColumn("Priority");
                }
            }
				
   			public static string PriorityColumn{
			      get{
        			return "Priority";
      			}
		    }
            
            public IColumn Area{
                get{
                    return this.GetColumn("Area");
                }
            }
				
   			public static string AreaColumn{
			      get{
        			return "Area";
      			}
		    }
            
            public IColumn MasterName{
                get{
                    return this.GetColumn("MasterName");
                }
            }
				
   			public static string MasterNameColumn{
			      get{
        			return "MasterName";
      			}
		    }
            
            public IColumn ViewName{
                get{
                    return this.GetColumn("ViewName");
                }
            }
				
   			public static string ViewNameColumn{
			      get{
        			return "ViewName";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: PageModule
        /// Primary Key: ModuleID
        /// </summary>

        public class PageModuleTable: DatabaseTable {
            
            public PageModuleTable(IDataProvider provider):base("PageModule",provider){
                ClassName = "PageModule";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("PageID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("ModuleID", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("SiteID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Layout", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Container", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Parameter", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Xml,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = -1
                });

                Columns.Add(new DatabaseColumn("ShowOrder", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn PageID{
                get{
                    return this.GetColumn("PageID");
                }
            }
				
   			public static string PageIDColumn{
			      get{
        			return "PageID";
      			}
		    }
            
            public IColumn ModuleID{
                get{
                    return this.GetColumn("ModuleID");
                }
            }
				
   			public static string ModuleIDColumn{
			      get{
        			return "ModuleID";
      			}
		    }
            
            public IColumn SiteID{
                get{
                    return this.GetColumn("SiteID");
                }
            }
				
   			public static string SiteIDColumn{
			      get{
        			return "SiteID";
      			}
		    }
            
            public IColumn Layout{
                get{
                    return this.GetColumn("Layout");
                }
            }
				
   			public static string LayoutColumn{
			      get{
        			return "Layout";
      			}
		    }
            
            public IColumn Container{
                get{
                    return this.GetColumn("Container");
                }
            }
				
   			public static string ContainerColumn{
			      get{
        			return "Container";
      			}
		    }
            
            public IColumn Parameter{
                get{
                    return this.GetColumn("Parameter");
                }
            }
				
   			public static string ParameterColumn{
			      get{
        			return "Parameter";
      			}
		    }
            
            public IColumn ShowOrder{
                get{
                    return this.GetColumn("ShowOrder");
                }
            }
				
   			public static string ShowOrderColumn{
			      get{
        			return "ShowOrder";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: BasicData
        /// Primary Key: BasicDataID
        /// </summary>

        public class BasicDataTable: DatabaseTable {
            
            public BasicDataTable(IDataProvider provider):base("BasicData",provider){
                ClassName = "BasicDatum";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("BasicDataID", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Category", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Name", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Code", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Value", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("ShowOrder", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("ParentBasicDataID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn BasicDataID{
                get{
                    return this.GetColumn("BasicDataID");
                }
            }
				
   			public static string BasicDataIDColumn{
			      get{
        			return "BasicDataID";
      			}
		    }
            
            public IColumn Category{
                get{
                    return this.GetColumn("Category");
                }
            }
				
   			public static string CategoryColumn{
			      get{
        			return "Category";
      			}
		    }
            
            public IColumn Name{
                get{
                    return this.GetColumn("Name");
                }
            }
				
   			public static string NameColumn{
			      get{
        			return "Name";
      			}
		    }
            
            public IColumn Code{
                get{
                    return this.GetColumn("Code");
                }
            }
				
   			public static string CodeColumn{
			      get{
        			return "Code";
      			}
		    }
            
            public IColumn Value{
                get{
                    return this.GetColumn("Value");
                }
            }
				
   			public static string ValueColumn{
			      get{
        			return "Value";
      			}
		    }
            
            public IColumn ShowOrder{
                get{
                    return this.GetColumn("ShowOrder");
                }
            }
				
   			public static string ShowOrderColumn{
			      get{
        			return "ShowOrder";
      			}
		    }
            
            public IColumn ParentBasicDataID{
                get{
                    return this.GetColumn("ParentBasicDataID");
                }
            }
				
   			public static string ParentBasicDataIDColumn{
			      get{
        			return "ParentBasicDataID";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: LocalResouce
        /// Primary Key: LocaleID
        /// </summary>

        public class LocalResouceTable: DatabaseTable {
            
            public LocalResouceTable(IDataProvider provider):base("LocalResouce",provider){
                ClassName = "LocalResouce";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("LocaleID", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("ResourceType", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 20
                });

                Columns.Add(new DatabaseColumn("ResourceUri", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });

                Columns.Add(new DatabaseColumn("LocalString", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 500
                });
                    
                
                
            }

            public IColumn LocaleID{
                get{
                    return this.GetColumn("LocaleID");
                }
            }
				
   			public static string LocaleIDColumn{
			      get{
        			return "LocaleID";
      			}
		    }
            
            public IColumn ResourceType{
                get{
                    return this.GetColumn("ResourceType");
                }
            }
				
   			public static string ResourceTypeColumn{
			      get{
        			return "ResourceType";
      			}
		    }
            
            public IColumn ResourceUri{
                get{
                    return this.GetColumn("ResourceUri");
                }
            }
				
   			public static string ResourceUriColumn{
			      get{
        			return "ResourceUri";
      			}
		    }
            
            public IColumn LocalString{
                get{
                    return this.GetColumn("LocalString");
                }
            }
				
   			public static string LocalStringColumn{
			      get{
        			return "LocalString";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: Locale
        /// Primary Key: LocaleID
        /// </summary>

        public class LocaleTable: DatabaseTable {
            
            public LocaleTable(IDataProvider provider):base("Locale",provider){
                ClassName = "Locale";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("LocaleID", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Name", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Country", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Culture", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Language", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("TimeZoneOffset", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Decimal,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Currency", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 10
                });

                Columns.Add(new DatabaseColumn("LongDateFormat", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("ShortDateFormat", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("LongTimeFormat", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("ShortTimeFormat", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("FullNameFormat", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("DigitFormat", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("PostCodeFormat", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("PhoneFormat", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });
                    
                
                
            }

            public IColumn LocaleID{
                get{
                    return this.GetColumn("LocaleID");
                }
            }
				
   			public static string LocaleIDColumn{
			      get{
        			return "LocaleID";
      			}
		    }
            
            public IColumn Name{
                get{
                    return this.GetColumn("Name");
                }
            }
				
   			public static string NameColumn{
			      get{
        			return "Name";
      			}
		    }
            
            public IColumn Country{
                get{
                    return this.GetColumn("Country");
                }
            }
				
   			public static string CountryColumn{
			      get{
        			return "Country";
      			}
		    }
            
            public IColumn Culture{
                get{
                    return this.GetColumn("Culture");
                }
            }
				
   			public static string CultureColumn{
			      get{
        			return "Culture";
      			}
		    }
            
            public IColumn Language{
                get{
                    return this.GetColumn("Language");
                }
            }
				
   			public static string LanguageColumn{
			      get{
        			return "Language";
      			}
		    }
            
            public IColumn TimeZoneOffset{
                get{
                    return this.GetColumn("TimeZoneOffset");
                }
            }
				
   			public static string TimeZoneOffsetColumn{
			      get{
        			return "TimeZoneOffset";
      			}
		    }
            
            public IColumn Currency{
                get{
                    return this.GetColumn("Currency");
                }
            }
				
   			public static string CurrencyColumn{
			      get{
        			return "Currency";
      			}
		    }
            
            public IColumn LongDateFormat{
                get{
                    return this.GetColumn("LongDateFormat");
                }
            }
				
   			public static string LongDateFormatColumn{
			      get{
        			return "LongDateFormat";
      			}
		    }
            
            public IColumn ShortDateFormat{
                get{
                    return this.GetColumn("ShortDateFormat");
                }
            }
				
   			public static string ShortDateFormatColumn{
			      get{
        			return "ShortDateFormat";
      			}
		    }
            
            public IColumn LongTimeFormat{
                get{
                    return this.GetColumn("LongTimeFormat");
                }
            }
				
   			public static string LongTimeFormatColumn{
			      get{
        			return "LongTimeFormat";
      			}
		    }
            
            public IColumn ShortTimeFormat{
                get{
                    return this.GetColumn("ShortTimeFormat");
                }
            }
				
   			public static string ShortTimeFormatColumn{
			      get{
        			return "ShortTimeFormat";
      			}
		    }
            
            public IColumn FullNameFormat{
                get{
                    return this.GetColumn("FullNameFormat");
                }
            }
				
   			public static string FullNameFormatColumn{
			      get{
        			return "FullNameFormat";
      			}
		    }
            
            public IColumn DigitFormat{
                get{
                    return this.GetColumn("DigitFormat");
                }
            }
				
   			public static string DigitFormatColumn{
			      get{
        			return "DigitFormat";
      			}
		    }
            
            public IColumn PostCodeFormat{
                get{
                    return this.GetColumn("PostCodeFormat");
                }
            }
				
   			public static string PostCodeFormatColumn{
			      get{
        			return "PostCodeFormat";
      			}
		    }
            
            public IColumn PhoneFormat{
                get{
                    return this.GetColumn("PhoneFormat");
                }
            }
				
   			public static string PhoneFormatColumn{
			      get{
        			return "PhoneFormat";
      			}
		    }
            
                    
        }
        
}